/**
 * com.dingjian.basedata.org.dao.impl.PositionDaoImpl.java
 */
package com.dingjian.basedata.org.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Component;

import com.dingjian.base.dao.impl.BaseDaoImpl;
import com.dingjian.basedata.org.dao.PositionDao;
import com.dingjian.basedata.org.model.Position;

/**
 * @author FengMy
 *
 * @since 2012-10-7
 */
@Component(value="positionDao")
public class PositionDaoImpl extends BaseDaoImpl implements PositionDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<Position> getByOrg(String org) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("belongOrg", org);
		return getSqlSession().selectList(getNameSpace() + ".select", param);
	}

	@Override
	protected String getNameSpace() {
		return "com.dingjian.basedata.org.dao.PositionDao";
	}
}
